import request from "@/utils/request";

const PriceApi = {
    // 获取询价单列表
    getPriceList(params) {
        return request({
            url: '/order/orderXj/khList',
            method: 'get',
            params
        })
    },
    // 获取询价单详情
    getPriceDetail(id) {
        return request({
            url: `/order/orderXj/${id}`,
            method: 'get',
        })
    },
    // 我要报价
    addPrice(data) {
        return request({
            url: '/order/orderXj/submitPrice',
            method: 'post',
            data
        })
    },
    // 供销商获取列表
    getSupplierPriceList(params) {
        return request({
            url: '/order/orderXjPartBjRelate/list',
            method: 'get',
            params
        })
    },
    // 供应商之询价详情
    getSupplierPriceDetail(id) {
        return request({
            url: `/order/orderXjPartBjRelate/${id}`,
            method: 'get',
        })
    },
    // 供应商报价
    addSupplierPrice(data) {
        return request({
            url: '/order/orderXjPartBjRelate',
            method: 'put',
            data
        })
    }
}

export default PriceApi
